Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayHolderExt Class / TryGetFloat Method / TryGetFloat(IPdfArrayHolder,Int32,Nullable<Single>,Boolean) Method
The current PDF array holder.
The index of the item to return.
OUT: the value at the specified index.
Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog.

In This Topic
    TryGetFloat(IPdfArrayHolder,Int32,Nullable<Single>,Boolean) Method
    In This Topic
    Tries to get the float value at the specified index, optionally adding a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted to a float.
    Syntax
    'Declaration
     
    Public Overloads Shared Function TryGetFloat( _
       ByVal pah As IPdfArrayHolder, _
       ByVal index As System.Integer, _
       ByRef value As System.Nullable(Of Single), _
       Optional ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetFloat( 
       IPdfArrayHolder pah,
       System.int index,
       out System.Nullable<float> value,
       System.bool addWarning
    )

    Parameters

    pah
    The current PDF array holder.
    index
    The index of the item to return.
    value
    OUT: the value at the specified index.
    addWarning
    Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog.

    Return Value

    True if the value can be converted to a float, false otherwise.
    See Also